package com.lemon.stock.viewmodel

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.lemon.stock.local.NavigationTab

class MainViewModel: ViewModel() {
    private val _position = MutableLiveData(NavigationTab.Home)

    val position: LiveData<NavigationTab> = _position

    fun onPositionChanged(position: NavigationTab){
        _position.value = position
    }
}